<div class="mathangs view">
<h2><?php  __('Mathang');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mathang['Mathang']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tenmathang'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mathang['Mathang']['tenmathang']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mamathang'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mathang['Mathang']['mamathang']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Donvitinh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($mathang['Donvitinh']['id'], array('controller' => 'donvitinhs', 'action' => 'view', $mathang['Donvitinh']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dongia'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mathang['Mathang']['dongia']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Mathang', true), array('action' => 'edit', $mathang['Mathang']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Mathang', true), array('action' => 'delete', $mathang['Mathang']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $mathang['Mathang']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Mathangs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mathang', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Donvitinhs', true), array('controller' => 'donvitinhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Donvitinh', true), array('controller' => 'donvitinhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Comathangs', true), array('controller' => 'comathangs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Comathang', true), array('controller' => 'comathangs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Comathangs');?></h3>
	<?php if (!empty($mathang['Comathang'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Mauvpp Id'); ?></th>
		<th><?php __('Mathang Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mathang['Comathang'] as $comathang):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $comathang['id'];?></td>
			<td><?php echo $comathang['mauvpp_id'];?></td>
			<td><?php echo $comathang['mathang_id'];?></td>
			<td><?php echo $comathang['soluong'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'comathangs', 'action' => 'view', $comathang['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'comathangs', 'action' => 'edit', $comathang['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'comathangs', 'action' => 'delete', $comathang['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comathang['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comathang', true), array('controller' => 'comathangs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
